<script type="text/javascript"><!--

function phpMyEdit_trim(str)
{
	while (str.substring(0, 1) == " "
			|| str.substring(0, 1) == "\n"
			|| str.substring(0, 1) == "\r")
	{
		str = str.substring(1, str.length);
	}
	while (str.substring(str.length - 1, str.length) == " "
			|| str.substring(str.length - 1, str.length) == "\n"
			|| str.substring(str.length - 1, str.length) == "\r")
	{
		str = str.substring(0, str.length - 1);
	}
	return str;
}

function phpMyEdit_form_control(theForm)
{

	if (phpMyEdit_trim(theForm.groupName.value) == "") {
		alert("Please enter GroupName.");
		theForm.groupName.focus();
		return false;
	}

	return true;
}

// --></script>
<form class="pme-form" action="om_groups.php" method="POST" onSubmit="return phpMyEdit_form_control(this);">
<input type="hidden" name="sfn[0]" value="0" />
<input type="hidden" name="sfn[1]" value="1" />
<input type="hidden" name="qfn" value="">
<input type="hidden" name="rec" value="1">
<input type="hidden" name="fm" value="0">
<input type="hidden" name="fl" value="0">
<table class="pme-main" summary="om_groups">
<tr class="pme-row-0">
<td class="pme-key-0">GroupId</td>
<td class="pme-value-0">
<input class="pme-input-0" type="text" disabled  name="groupId" size="8" maxlength="8" value="0"></td>
</tr>
<tr class="pme-row-1">
<td class="pme-key-1">GroupName</td>
<td class="pme-value-1">
<input class="pme-input-1" type="text"  name="groupName" size="60" maxlength="255" value=""></td>
</tr>
<tr class="pme-row-0">
<td class="pme-key-0">GroupDescription</td>
<td class="pme-value-0">
<textarea class="pme-input-0" name="groupDescription" rows="5" cols="50" wrap="virtual"></textarea>
</td>
</tr>
</table>
<hr class="pme-hr">
<table class="pme-navigation">
<tr class="pme-navigation">
<td class="pme-buttons">
<input class="pme-save" type="submit" name="saveadd" value="Save">&nbsp;<input class="pme-more" type="submit" name="moreadd" value="More">&nbsp;<input class="pme-cancel" type="button" name="cancel" value="Cancel" onClick="form.submit();">
</td>
</tr></table>
</form>
